namespace Front._1120;

public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
    }

    private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
    {
        
    }

    private void menuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
    {

    }

    private void button1_Click(object sender, EventArgs e)
    {
        openFileDialog1 = new OpenFileDialog();
        if (openFileDialog1.ShowDialog() == DialogResult.OK)
        {
            string path = openFileDialog1.FileName;
            string realName = System.IO.Path.GetFileName(path);
            long time = DateTime.Now.Ticks;
            File.Copy(path,"D:\\1120\\"+realName,true);
        }
    }

    private void button2_Click(object sender, EventArgs e)
    {
         saveFileDialog1= new SaveFileDialog();
         if (saveFileDialog1.ShowDialog() == DialogResult.OK)
         {

         }
    }

    private void button3_Click(object sender, EventArgs e)
    {
        openFileDialog1 = new OpenFileDialog();
        if (openFileDialog1.ShowDialog() == DialogResult.OK)
        {
            string path = openFileDialog1.FileName;
            string realName = System.IO.Path.GetFileName(path);
            long time = DateTime.Now.Ticks;
            File.Copy(path,"D:\\1120\\"+realName,true);
            this.pictureBox1.Image=Image.FromFile(path);
        }
    }
}